<%@ page language="java" contentType="text/html; charset=utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<%
			response.setCharacterEncoding("UTF-8");
			String text = (String)request.getAttribute("searchText");
			//text = new String(text.getBytes("ISO-8859-1"), "utf-8");
			int perPage =(Integer)(request.getAttribute("perPage"));
			String pageIndex = (String)request.getAttribute("pageIndex");
			String details = (String)request.getAttribute("details");
		%>
		<title><%=text%>&nbsp;&nbsp;下一代互联网分布式搜索引擎平台</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="css/main.css" rel="stylesheet" type="text/css" />
		<link href="css/suggest.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="script/jquery.js"
			language="javascript"></script>
		<script type="text/javascript" src="script/jquery.cookie.js" language="javascript"></script>
		<script type="text/javascript" src="script/jquery.jsoncookie.js" language="javascript"></script>
		<script type="text/javascript" src="script/json.js"></script>
		<script type="text/javascript" src="script/collector.js"></script>
		<script type="text/javascript" src="script/myPageShow.js" language="javascript"></script>
		<script type="text/javascript">
		
	function contentsearch1(perPage)
	{
		var qtext = document.getElementById("searchtext1");
	 	if(qtext.value == null || qtext.value == "")
	  	{
	  	 	alert("请输入查询关键字!");
	  	}
	  	else
	  	{	
	  		var value = qtext.value;

			var url="searchAction.do?method=pageIndexSearch&searchText="+encodeURI(value);
	  		url += "&page=0&perPage="+perPage;
	  		url += "&hs=0";
	  		document.form2.action = url;
			document.form2.submit();
		}
	}
	
	//当用点击URL链接的时候，更新日志
	function clickURL(url,wname,type)
	{
		//alert(url+wname+type);
		var stext = '<%=text%>';
		var data = "searchText="+encodeURI(stext);
		data += "&url="+url;
		data += "&wname="+wname;
		data += "&type="+type; 
		$.get("servlet/UserClickURLServlet",data,null);
	
	}
	
	</script>

	</head>

	<body>
		<table border=0>
			<tr>
				<td>
					<a href="default1.jsp"><img src="images/logo.jpg" border="0" />
					</a>
				</td>
			</tr>
		</table>

		<table>
			<tr>
				<td width="200">
				</td>
				<td>
					<form name="form2" method="post"
						onsubmit="contentsearch1('<%=perPage%>')">
						<div id="searchinput">
							<input type="text" id="searchtext1" value="<%=text%>" />
							<input id="searchsubmit" type="submit" value="" />
						</div>
					</form>
				</td>
				<td>
					<a id="ipv6link" href="advanced.jsp">高级搜索</a>
				</td>
			</tr>
			<tr>
				<td>
				</td>
				<td>
					<div id="costTimeShow"></div>
				</td>
			</tr>
		</table>

		<table border="0">
			<tr>
				<td width="200" align="left" valign="top">
					
				</td>
				<td width="750" valign="top">
					<table>
						<tr>
							<td>
								<div id="detailsShow">
									<%=details %>
								</div>
								<br>
								<%=pageIndex %>
							</td>

						</tr>
						<tr valign="bottom">
							<td valign="bottom">
								<div id="pageIndex"></div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>

		<table>
			<tr>
				<td width="200">
				</td>
				<td>
				</td>
			</tr>
		</table>
		<table align="center">
			<tr>
				<td>
					<div id="copyright">
						<p>
							&nbsp;
						</p>
						<p>
							&nbsp;
						</p>
						<p>
							版权所有 华南理工大学广东省网络重点实验室&nbsp;

						</p>
						<p>
							Copyright (c) 2010 SCUT CCNL All Rights Reserved &nbsp;
							<a href="aboutus.jsp"><font
								style="color: #aaa; text-decoration: none">关于我们</font> </a>
						</p>
					</div>
				</td>
			</tr>
		</table>
	</body>
</html>
